package rozetka.pages;

import rozetka.utils.ReportWriter;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

/**
 * Created by foneox on 31.03.2014.
 */
public class HomePage extends BasePage {

    public HomePage(WebDriver driver) {
        super (driver);
    }

    public RegistrationPage followRegistrationPage() {
        driver.findElement(By.name("signin")).click();
        driver.findElement(By.cssSelector(".auth-f-signup-link")).click();
        ReportWriter.info(driver.getCurrentUrl() + " was opened.");
        return new RegistrationPage(driver);
    }
}
